<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>hidro_data</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th bgcolor="#70b0f0" class="navbar-select"
          >&nbsp;&nbsp;&nbsp;Home&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Module&nbsp;hidro_data
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="hidro_data-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module hidro_data</h1><p class="nomargin-top"><span class="codelink"><a href="hidro_data-pysrc.html">source&nbsp;code</a></span></p>
<p>Librer&#237;a python para hidrolog&#237;a computacional.</p>

<hr />
<div class="fields">      <p><strong>Author:</strong>
        Javier Rovegno
      </p>
      <p><strong>Contact:</strong>
        javier.rovegno@gmail.com
      </p>
      <p><strong>Version:</strong>
        0.1
      </p>
      <p><strong>License:</strong>
        GNU General Public License
        <p>Website: <a href="http://code.google.com/p/hydropy/" 
        target="_top">http://code.google.com/p/hydropy/</a></p>
      </p>
</div><!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Functions</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Functions"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">Matriz de datos</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#from_xls" class="summary-sig-name">from_xls</a>(<span class="summary-sig-arg">archivo</span>,
        <span class="summary-sig-arg">nsheet</span>=<span class="summary-sig-default">0</span>)</span><br />
      Genera una matriz de datos a partir de un archivo excel.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#from_xls">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">excel file</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#to_xls" class="summary-sig-name">to_xls</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">file_name</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">file01.xls</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">sheet_name</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">Hoja0</code><code class="variable-quote">'</code></span>)</span><br />
      Escribe el contenido de una matriz de datos en un archivo de planilla
      de c&#225;lculo</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#to_xls">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">Matriz de datos</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#rd_data_col" class="summary-sig-name">rd_data_col</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">cx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">lost_OK</span>=<span class="summary-sig-default">False</span>)</span><br />
      Genera una matriz con datos de la columna cx Si no se especifica cx 
      genera una matriz con todos los datos en una sola columna.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#rd_data_col">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">Matriz de datos</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#rd_col" class="summary-sig-name">rd_col</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">cx</span>=<span class="summary-sig-default">None</span>)</span><br />
      Genera una matriz con datos de la columna cx Si no se especifica cx 
      genera una matriz con todos los datos en una sola columna</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#rd_col">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">Matriz de datos</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#hidro_yr" class="summary-sig-name">hidro_yr</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">estiaje</span>=<span class="summary-sig-default">4</span>)</span><br />
      Transforma matriz de datos mensuales desde A&#241;o calendario a A&#241;o 
      hidrol&#243;gico</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#hidro_yr">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">Matriz de datos</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#vol_yr" class="summary-sig-name">vol_yr</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">years</span>=<span class="summary-sig-default">None</span>)</span><br />
      Crea un vector de datos con volumen anual</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#vol_yr">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#yr" class="summary-sig-name">yr</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">year</span>,
        <span class="summary-sig-arg">fill</span>=<span class="summary-sig-default">None</span>)</span><br />
      Extrae los datos de un a&#241;o especificado</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#yr">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">tuple</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#stad" class="summary-sig-name">stad</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">cx</span>=<span class="summary-sig-default">None</span>)</span><br />
      Calcula el max, media y min de una matriz de datos</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#stad">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">tuple</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#quartil" class="summary-sig-name">quartil</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">cx</span>=<span class="summary-sig-default">None</span>)</span><br />
      De una matriz de datos return (1er_quartil, 4to_quartil)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#quartil">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#yrs_type" class="summary-sig-name">yrs_type</a>(<span class="summary-sig-arg">data_vol</span>,
        <span class="summary-sig-arg">vol_hi</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">vol_low</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">is_data</span>=<span class="summary-sig-default">False</span>)</span><br />
      Retorna matriz de listas con A&#241;os secos, A&#241;os normales, A&#241;os h&#250;medos</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#yrs_type">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#index_lost" class="summary-sig-name">index_lost</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">yrx</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">hidecx</span>=<span class="summary-sig-default">False</span>)</span><br />
      Entrega &#237;ndices de datos faltantes</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#index_lost">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">Matriz de datos</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#concurrent" class="summary-sig-name">concurrent</a>(<span class="summary-sig-arg">data1</span>,
        <span class="summary-sig-arg">data2</span>=<span class="summary-sig-default">None</span>)</span><br />
      Compara a&#241;os completos recurrentes de 2 matrices de datos</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#concurrent">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">Matriz de datos</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#datafromyrs" class="summary-sig-name">datafromyrs</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">years</span>=<span class="summary-sig-default">None</span>)</span><br />
      Entrega una matriz de datos de los a&#241;os solicitados</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#datafromyrs">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">bool</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#is_data_one_colum" class="summary-sig-name">is_data_one_colum</a>(<span class="summary-sig-arg">data</span>)</span><br />
      Detecta si data es mensual o anual</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#is_data_one_colum">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#yr_concurrent" class="summary-sig-name">yr_concurrent</a>(<span class="summary-sig-arg">data1</span>,
        <span class="summary-sig-arg">data2</span>,
        <span class="summary-sig-arg">cons</span>=<span class="summary-sig-default">False</span>)</span><br />
      Compara a&#241;os completos concurrentes de 2 matrices de datos</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#yr_concurrent">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">tuple</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#lin_reg" class="summary-sig-name">lin_reg</a>(<span class="summary-sig-arg">data1</span>,
        <span class="summary-sig-arg">data2</span>,
        <span class="summary-sig-arg">yr_conc</span>=<span class="summary-sig-default">None</span>)</span><br />
      Calcula par&#225;metros regresi&#243;n lineal entre 2 matrices de datos</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#lin_reg">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">tuple</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#find_neighbors" class="summary-sig-name">find_neighbors</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">iyr</span>,
        <span class="summary-sig-arg">cx</span>,
        <span class="summary-sig-arg">val</span>=<span class="summary-sig-default">True</span>)</span><br />
      Busca dato anterior y posterior v&#225;lido a un dato de inter&#233;s.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#find_neighbors">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">Matriz de datos</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#fill_data_s" class="summary-sig-name">fill_data_s</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">lind_lost</span>=<span class="summary-sig-default">None</span>)</span><br />
      Rellenar datos faltantes con prom datos anterior y posterior v&#225;lida</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#fill_data_s">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">Matriz de datos</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#fill_data" class="summary-sig-name">fill_data</a>(<span class="summary-sig-arg">data1</span>,
        <span class="summary-sig-arg">data2</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">lind_lost</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">lin_reg_param</span>=<span class="summary-sig-default">None</span>)</span><br />
      Rellenar datos faltantes y corrige con regresi&#243;n lineal</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#fill_data">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">Matriz de datos</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#copy_data" class="summary-sig-name">copy_data</a>(<span class="summary-sig-arg">data</span>)</span><br />
      Create the copy of thr data.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#copy_data">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#data_lr" class="summary-sig-name">data_lr</a>(<span class="summary-sig-arg">data2</span>,
        <span class="summary-sig-arg">lind_lost2</span>,
        <span class="summary-sig-arg">lin_reg_param</span>)</span><br />
      Calcula datos de una regresi&#243;n lineal de estaci&#243;n data2</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#data_lr">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">float</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#data_prom" class="summary-sig-name">data_prom</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">iyr</span>,
        <span class="summary-sig-arg">cx</span>)</span><br />
      Rellena dato con promedio de mes anterior y posterior v&#225;lido</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#data_prom">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">bitmap file</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#plot_corr_q" class="summary-sig-name">plot_corr_q</a>(<span class="summary-sig-arg">data1</span>,
        <span class="summary-sig-arg">data2</span>,
        <span class="summary-sig-arg">yr_conc</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">lin_reg_param</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">name_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">fig02</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">title</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">LinReg </code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">path_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span><br />
      Plotear correlacion entre 2 matrices de datos</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#plot_corr_q">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">bitmap file</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#plot_q" class="summary-sig-name">plot_q</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">yrs</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">name_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">fig01</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">title</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">Caudales </code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">path_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span><br />
      Plotear caudales de a&#241;os con datos completos en un s&#243;lo archivo</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#plot_q">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">bitmap file</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#plot_vol" class="summary-sig-name">plot_vol</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">yrs</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">name_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">fig02</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">title</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">Vol\xc3\xbamenes </code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">path_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">is_data_vol</span>=<span class="summary-sig-default">False</span>)</span><br />
      Plotear vol&#250;men anual de a&#241;os con datos completos</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#plot_vol">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">bitmap file</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#plot_c" class="summary-sig-name">plot_c</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">lcx</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">ylabel</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">m3/s</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">name_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">fig01</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">title</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">Grafo </code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">path_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span><br />
      Plotear datos de una columna</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#plot_c">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">bitmap file</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#plot_yr" class="summary-sig-name">plot_yr</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">years</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">name_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">fig01</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">title_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">Caudales A\xc3\xb1o</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">path_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span><br />
      Plotear en cada archivo datos a&#241;os completos e incompletos rellenando
      con promedio datos cercanos al faltante</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#plot_yr">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">bitmap file</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#plot_yr_lr" class="summary-sig-name">plot_yr_lr</a>(<span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">years</span>,
        <span class="summary-sig-arg">data1</span>,
        <span class="summary-sig-arg">lin_reg_param</span>,
        <span class="summary-sig-arg">name_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">fig01</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">title_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">Caudales </code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">path_fig</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span><br />
      Plotear en cada archivo datos a&#241;os completos e incompletos rellenando
      con con una correlaci&#243;n con otra estaci&#243;n</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#plot_yr_lr">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">bitmap file</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#plot_yr_lost" class="summary-sig-name">plot_yr_lost</a>(<span class="summary-sig-arg">names_data</span>,
        <span class="summary-sig-arg">*args</span>)</span><br />
      Plot de a&#241;os sin datos</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#plot_yr_lost">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#plot_yr_type" class="summary-sig-name">plot_yr_type</a>(<span class="summary-sig-arg">names_data</span>,
        <span class="summary-sig-arg">*args</span>)</span><br />
      Plot de a&#241;os sin datos names_data = [name1, ...</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#plot_yr_type">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#trunc_str" class="summary-sig-name">trunc_str</a>(<span class="summary-sig-arg">names</span>,
        <span class="summary-sig-arg">n</span>=<span class="summary-sig-default">6</span>)</span><br />
      Trunca las palabras dentro de una lista de palabras</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#trunc_str">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="hidro_data-module.html#ones" class="summary-sig-name">ones</a>(<span class="summary-sig-arg">lista</span>,
        <span class="summary-sig-arg">value</span>=<span class="summary-sig-default">1</span>)</span><br />
      Crea una lista de igual largo rellenando con el valor dado</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="hidro_data-pysrc.html#ones">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Variables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="__package__"></a><span class="summary-name">__package__</span> = <code title="None">None</code>
    </td>
  </tr>
</table>
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Function Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-FunctionDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="from_xls"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">from_xls</span>(<span class="sig-arg">archivo</span>,
        <span class="sig-arg">nsheet</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#from_xls">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Genera una matriz de datos a partir de un archivo excel.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>archivo</code></strong> (excel file) - Datos mensuales o anuales.</li>
        <li><strong class="pname"><code>nsheet</code></strong> (int) - Indice de la hoja del archivo excel</li>
    </ul></dd>
    <dt>Returns: Matriz de datos</dt>
        <dd>Matriz de datos mensuales A o anuales B
          <p>Descripcci&#243;n de matriz de datos:</p>
<pre class="literalblock">
   A[0] lista de a&#241;os con datos
   A[0][0] 1er a&#241;o con datos
   A[1] submatriz de datos por a&#241;o
   A[1][0] lista con datos mensuales 1er a&#241;o
   A[1][0][0] dato 1er a&#241;o 1er mes
   A[2] lista de etiqueta datos
   A[2][1] etiqueta 1er dato
   
   B[0] lista de a&#241;os con datos
   B[0][0] 1er a&#241;o con datos
   B[1] lista de datos por a&#241;o
   B[1][0] dato 1er a&#241;o
   B[2] lista de etiqueta datos
   B[2][1] etiqueta 1er dato
</pre></dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>) <span class="py-comment"># Lee sheet 0 (mensual)</span>
<span class="py-prompt">&gt;&gt;&gt; </span>a[0]
<span class="py-output">[1950.0, 1951.0, 1952.0]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>b = from_xls(<span class="py-string">'data_test.xls'</span>,1) <span class="py-comment"># Lee sheet anual</span>
<span class="py-prompt">&gt;&gt;&gt; </span>b[1][0]
<span class="py-output">[1.1000000000000001]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>from_xls(<span class="py-string">'data_test.xls'</span>,-1) <span class="py-comment"># Lee sheet fuera de rango</span>
<span class="py-except">Traceback (most recent call last):</span>
<span class="py-except">...</span>
<span class="py-except">ValueError: nsheet fuera de rango</span>
<span class="py-except"></span><span class="py-prompt">&gt;&gt;&gt; </span>from_xls(<span class="py-string">'data_test.xls'</span>,<span class="py-string">'hola'</span>) <span class="py-comment"># Indice sheet str</span>
<span class="py-except">Traceback (most recent call last):</span>
<span class="py-except">...</span>
<span class="py-except">ValueError: nsheet debe ser un entero</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="to_xls"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">to_xls</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">file_name</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">file01.xls</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">sheet_name</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">Hoja0</code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#to_xls">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Escribe el contenido de una matriz de datos en un archivo de planilla 
  de c&#225;lculo</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
    </ul></dd>
    <dt>Returns: excel file</dt>
        <dd>Archivo de planilla de c&#225;lculo xls</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>,0)
<span class="py-prompt">&gt;&gt;&gt; </span>to_xls(a,<span class="py-string">'data_test_copy.xls'</span>)
<span class="py-prompt">&gt;&gt;&gt; </span>b = from_xls(<span class="py-string">'data_test_copy.xls'</span>)
<span class="py-prompt">&gt;&gt;&gt; </span>a == b
<span class="py-output">True</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="rd_data_col"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">rd_data_col</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">cx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">lost_OK</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#rd_data_col">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Genera una matriz con datos de la columna cx Si no se especifica cx 
  genera una matriz con todos los datos en una sola columna. Los a&#241;os y 
  etiquetas concuerdan con los del dato de la columna cx.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>cx</code></strong> (int) - Indice de la columna a leer Si cx=None extra todas las columnas</li>
    </ul></dd>
    <dt>Returns: Matriz de datos</dt>
        <dd>Matriz de datos con la columna especificada</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>) <span class="py-comment"># Lee sheet 0 (mensual)</span>
<span class="py-prompt">&gt;&gt;&gt; </span>[a[1][0][11],a[1][1][11],a[1][2][11]]
<span class="py-output">[12.1, 13.1, '']</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>rd_data_col(a,11)[1] <span class="py-comment"># Datos Diciembre</span>
<span class="py-output">[12.1, 13.1]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>rd_data_col(a,11,lost_OK=True)[1] <span class="py-comment"># Datos Diciembre</span>
<span class="py-output">[12.1, 13.1, '']</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>rd_data_col(a,0)[1] <span class="py-comment"># Datos enero</span>
<span class="py-output">[1.1000000000000001, 2.1000000000000001, 3.1000000000000001]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>rd_data_col(a,0)[2]
<span class="py-output">[u'YEAR', u'JAN']</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>rd_data_col(a,0)[3]
<span class="py-output">[u'JAN', u'JAN', u'JAN']</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>rd_data_col(a,0)[0]
<span class="py-output">[1950.0, 1951.0, 1952.0]</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="rd_col"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">rd_col</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">cx</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#rd_col">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Genera una matriz con datos de la columna cx Si no se especifica cx 
  genera una matriz con todos los datos en una sola columna</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>cx</code></strong> - Indice de la columna a leer Si cx=None extra todas las columnas</li>
    </ul></dd>
    <dt>Returns: Matriz de datos</dt>
        <dd>Matriz de datos con la columna especificada</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Obsoleto preferir rd_data_col
      </p>
</div></td></tr></table>
</div>
<a name="hidro_yr"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">hidro_yr</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">estiaje</span>=<span class="sig-default">4</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#hidro_yr">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Transforma matriz de datos mensuales desde A&#241;o calendario a A&#241;o 
  hidrol&#243;gico</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>estiaje</code></strong> (entero entre (1 ... 12) Enero a Diciembre) - Mes m&#225;s seco del a&#241;o a partir de los datos hist&#243;ricos</li>
    </ul></dd>
    <dt>Returns: Matriz de datos</dt>
        <dd>Matriz de datos transformados a a&#241;o hidrol&#243;gico</dd>
  </dl>
</td></tr></table>
</div>
<a name="vol_yr"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">vol_yr</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">years</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#vol_yr">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Crea un vector de datos con volumen anual</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> (Datos de caudales mensuales) - Matriz de datos</li>
    </ul></dd>
    <dt>Returns: Matriz de datos</dt>
        <dd>Datos de vol&#250;menes anuales</dd>
  </dl>
</td></tr></table>
</div>
<a name="yr"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">yr</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">year</span>,
        <span class="sig-arg">fill</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#yr">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Extrae los datos de un a&#241;o especificado</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> (Matriz de datos) - Matriz de datos mensuales</li>
        <li><strong class="pname"><code>year</code></strong> (int) - A&#241;o especificado</li>
    </ul></dd>
    <dt>Returns: list</dt>
        <dd>Datos mensuales del a&#241;o especificado</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>, 2) <span class="py-comment"># Lee sheet lost</span>
<span class="py-prompt">&gt;&gt;&gt; </span>yr(a, 1950)
<span class="py-output">['', 2.1000000000000001, 3.1000000000000001, 4.0999999999999996, 5.0999999999999996, 6.0999999999999996, 7.0999999999999996, 8.0999999999999996, '', 10.1, 11.1, 12.1]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>yr(a, 1950,-9999)
<span class="py-output">[-9999, 2.1000000000000001, 3.1000000000000001, 4.0999999999999996, 5.0999999999999996, 6.0999999999999996, 7.0999999999999996, 8.0999999999999996, -9999, 10.1, 11.1, 12.1]</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="stad"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">stad</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">cx</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#stad">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Calcula el max, media y min de una matriz de datos</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>cx</code></strong> - Indice de la columna</li>
    </ul></dd>
    <dt>Returns: tuple</dt>
        <dd>(max, media, min)</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>) <span class="py-comment"># Lee sheet 0 (mensual)</span>
<span class="py-prompt">&gt;&gt;&gt; </span>stad(a)
<span class="py-output">(13.1, 6.7666666666666639, 1.1000000000000001)</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="quartil"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">quartil</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">cx</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#quartil">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>De una matriz de datos return (1er_quartil, 4to_quartil)</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>cx</code></strong> - Indice de la columna</li>
    </ul></dd>
    <dt>Returns: tuple</dt>
        <dd>(1er_quartil, 4to_quartil)</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>,0) <span class="py-comment"># Lee sheet 0 (mensual)</span>
<span class="py-prompt">&gt;&gt;&gt; </span>a = concurrent(a,a) <span class="py-comment"># Extrae a&#241;os completos</span>
<span class="py-prompt">&gt;&gt;&gt; </span>vol_a = vol_yr(a) <span class="py-comment"># Calcula el volumen anual</span>
<span class="py-prompt">&gt;&gt;&gt; </span>quartil(vol_a)
<span class="py-output">(216.8424, 232.61040000000003)</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="yrs_type"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">yrs_type</span>(<span class="sig-arg">data_vol</span>,
        <span class="sig-arg">vol_hi</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">vol_low</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">is_data</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#yrs_type">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Retorna matriz de listas con A&#241;os secos, A&#241;os normales, A&#241;os 
  h&#250;medos</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data_vol</code></strong> (Vol&#250;menes anuales) - Matriz de datos</li>
        <li><strong class="pname"><code>vol_hi</code></strong> - Volumen m&#237;nimo anual de un a&#241;o h&#250;medo</li>
        <li><strong class="pname"><code>vol_low</code></strong> - Volumen m&#225;ximo anual de un a&#241;o seco</li>
        <li><strong class="pname"><code>is_data</code></strong> - Si es True el par&#225;metro data_vol es un matriz de datos con 
          caudales mensuales</li>
    </ul></dd>
    <dt>Returns: list</dt>
        <dd>[A&#241;os secos, A&#241;os normales, A&#241;os h&#250;medos]</dd>
  </dl>
</td></tr></table>
</div>
<a name="index_lost"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">index_lost</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">yrx</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">hidecx</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#index_lost">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Entrega &#237;ndices de datos faltantes</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>yrx</code></strong> - Si es True entrega el &#237;ndice de la fila, si es False entrega el 
          a&#241;o del dato faltante</li>
        <li><strong class="pname"><code>hidecx</code></strong> - Si es True agrega el &#237;ndice de la columna</li>
    </ul></dd>
    <dt>Returns: list</dt>
        <dd>Lista de &#237;ndices</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>, 2) <span class="py-comment"># Lee sheet lost</span>
<span class="py-prompt">&gt;&gt;&gt; </span>index_lost(a)
<span class="py-output">[[1950.0, 0], [1950.0, 8], [1951.0, 7], [1952.0, 11]]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>index_lost(a, hidecx=True) <span class="py-comment"># Lo mismo yr_index_lost</span>
<span class="py-output">[1950.0, 1951.0, 1952.0]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>index_lost(a,yrx=False, hidecx=True) <span class="py-comment"># Indice a&#241;os faltantes</span>
<span class="py-output">[0, 0, 1, 2]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>b = from_xls(<span class="py-string">'data_test.xls'</span>, 1) <span class="py-comment"># Lee sheet anual</span>
<span class="py-prompt">&gt;&gt;&gt; </span>index_lost(b, hidecx=True)
<span class="py-output">[1952.0]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>c = from_xls(<span class="py-string">'data_test.xls'</span>, 0) <span class="py-comment"># Lee sheet mensual    </span>
<span class="py-prompt">&gt;&gt;&gt; </span>index_lost(c, yrx=False, hidecx=False)
<span class="py-output">[[2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11]]</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="concurrent"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">concurrent</span>(<span class="sig-arg">data1</span>,
        <span class="sig-arg">data2</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#concurrent">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Compara a&#241;os completos recurrentes de 2 matrices de datos</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data1</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>data2</code></strong> - Matriz de datos</li>
    </ul></dd>
    <dt>Returns: Matriz de datos</dt>
        <dd>Matriz de datos de data1 recurrentes con data2</dd>
  </dl>
</td></tr></table>
</div>
<a name="datafromyrs"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">datafromyrs</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">years</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#datafromyrs">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Entrega una matriz de datos de los a&#241;os solicitados</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>years</code></strong> - Lista de a&#241;os solicitados</li>
    </ul></dd>
    <dt>Returns: Matriz de datos</dt>
        <dd>Matriz de datos de los a&#241;os solicitados</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>, 2) <span class="py-comment"># Lee sheet lost</span>
<span class="py-prompt">&gt;&gt;&gt; </span>datafromyrs(a,1951)[2][1]
<span class="py-output">u'JAN'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>datafromyrs(a,1951)[1][0][1]
<span class="py-output">3.1000000000000001</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>datafromyrs(a,[1950,1951])[0]
<span class="py-output">[1950.0, 1951.0]</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="is_data_one_colum"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">is_data_one_colum</span>(<span class="sig-arg">data</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#is_data_one_colum">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Detecta si data es mensual o anual</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
    </ul></dd>
    <dt>Returns: bool</dt>
        <dd>True si la matriz de datos es anual, False si no es anual</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>,0) <span class="py-comment"># Lee sheet mensual</span>
<span class="py-prompt">&gt;&gt;&gt; </span>b = rd_data_col(a,2)
<span class="py-prompt">&gt;&gt;&gt; </span>is_data_one_colum(a)
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>is_data_one_colum(b)
<span class="py-output">True</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="yr_concurrent"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">yr_concurrent</span>(<span class="sig-arg">data1</span>,
        <span class="sig-arg">data2</span>,
        <span class="sig-arg">cons</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#yr_concurrent">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Compara a&#241;os completos concurrentes de 2 matrices de datos</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data1</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>data2</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>cons</code></strong> - Si es False lista de todos los a&#241;os recurrentes, si es True 
          matriz de listas de a&#241;os recurrentes consecutivos</li>
    </ul></dd>
    <dt>Returns: list</dt>
        <dd>Lista de a&#241;os de a&#241;os concurrentes de data1 y data2</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>b = from_xls(<span class="py-string">'data_test.xls'</span>,0) <span class="py-comment"># Lee sheet mensual</span>
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>,3) <span class="py-comment"># Lee sheet mensual1</span>
<span class="py-prompt">&gt;&gt;&gt; </span>c = from_xls(<span class="py-string">'data_test.xls'</span>,1) <span class="py-comment"># Lee sheet anual</span>
<span class="py-prompt">&gt;&gt;&gt; </span>yr_concurrent(a,b)
<span class="py-output">[1950.0]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>yr_concurrent(b,c)
<span class="py-output">[1950.0, 1951.0]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>yr_concurrent(b,b)
<span class="py-output">[1950.0, 1951.0]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>yr_concurrent(a,a,cons=True)
<span class="py-output">[[1950.0], [1952.0]]</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="lin_reg"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">lin_reg</span>(<span class="sig-arg">data1</span>,
        <span class="sig-arg">data2</span>,
        <span class="sig-arg">yr_conc</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#lin_reg">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Calcula par&#225;metros regresi&#243;n lineal entre 2 matrices de datos</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data1</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>data2</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>yr_conc</code></strong> - Lista de a&#241;os concurrentes que define los datos a utilizar en el 
          c&#225;lculo de la regresi&#243;n lineal. Si yr_conc=None utiliza todos los
          a&#241;os concurrentes disponibles.</li>
        <li><strong class="pname"><code>R-squared</code></strong> - r_value**2</li>
    </ul></dd>
    <dt>Returns: tuple</dt>
        <dd>(gradient, intercept, r_value, p_value, std_err)</dd>
  </dl>
</td></tr></table>
</div>
<a name="find_neighbors"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">find_neighbors</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">iyr</span>,
        <span class="sig-arg">cx</span>,
        <span class="sig-arg">val</span>=<span class="sig-default">True</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#find_neighbors">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Busca dato anterior y posterior v&#225;lido a un dato de inter&#233;s.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>iyr</code></strong> - A&#241;o del dato de inter&#233;s</li>
        <li><strong class="pname"><code>cx</code></strong> - Indice de la columna del dato de inter&#233;s</li>
        <li><strong class="pname"><code>val</code></strong> (bool) - Indica si se quiere los valores o la posici&#243;n de los datos 
          vecinos.</li>
    </ul></dd>
    <dt>Returns: tuple</dt>
        <dd>Si val=True retorna (ant,pos,length,place) Si val=False retorna 
          (antyr,antcx,posyr,poscx,yr)</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>, 2) <span class="py-comment"># Lee sheet lost</span>
<span class="py-prompt">&gt;&gt;&gt; </span>lind_lost_a = index_lost(a,yrx=False)
<span class="py-prompt">&gt;&gt;&gt; </span>find_neighbors(a,lind_lost_a[0][0],lind_lost_a[0][1])
<span class="py-except">Traceback (most recent call last):</span>
<span class="py-except">    ...</span>
<span class="py-except">IndexError: Datos faltante extremo inferior</span>
<span class="py-except"></span><span class="py-prompt">&gt;&gt;&gt; </span>find_neighbors(a,lind_lost_a[3][0],lind_lost_a[3][1])
<span class="py-except">Traceback (most recent call last):</span>
<span class="py-except">    ...</span>
<span class="py-except">IndexError: Datos faltante extremo superior</span>
<span class="py-except"></span><span class="py-prompt">&gt;&gt;&gt; </span>c = from_xls(<span class="py-string">'data_test.xls'</span>, 3) <span class="py-comment"># Lee sheet mensual1</span>
<span class="py-prompt">&gt;&gt;&gt; </span>index_lost(c, yrx=False, hidecx=False)
<span class="py-output">[[1, 3], [3, 3], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11]]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>lind_lost_c = index_lost(c,yrx=False)
<span class="py-prompt">&gt;&gt;&gt; </span>find_neighbors(c,lind_lost_c[0][0],lind_lost_c[0][1])
<span class="py-output">(4.0999999999999996, 6.0999999999999996, 2, 1)</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>find_neighbors(c,lind_lost_c[0][0],lind_lost_c[0][1],val=False)
<span class="py-output">(1951.0, 2, 1951.0, 4, 1951.0)</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="fill_data_s"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">fill_data_s</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">lind_lost</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#fill_data_s">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Rellenar datos faltantes con prom datos anterior y posterior 
  v&#225;lida</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>lind_lost</code></strong> - Lista de &#237;ndice de datos faltantes. Si lind_lost=None entonces 
          rellena todos los datos faltantes</li>
    </ul></dd>
    <dt>Returns: Matriz de datos</dt>
        <dd>Matriz de datos con datos rellenados</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>c = from_xls(<span class="py-string">'data_test.xls'</span>, 3) <span class="py-comment"># Lee sheet mensual1</span>
<span class="py-prompt">&gt;&gt;&gt; </span>index_lost(c, yrx=False, hidecx=False)
<span class="py-output">[[1, 3], [3, 3], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11]]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>c_r = fill_data_s(c)
<span class="py-prompt">&gt;&gt;&gt; </span>c[1][1][3]
<span class="py-output">''</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>c_r[1][1][3]
<span class="py-output">5.0999999999999996</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="fill_data"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">fill_data</span>(<span class="sig-arg">data1</span>,
        <span class="sig-arg">data2</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">lind_lost</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">lin_reg_param</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#fill_data">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Rellenar datos faltantes y corrige con regresi&#243;n lineal</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data1</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>data2</code></strong> - Matriz de datos Si data2=None s&#243;lo rellena con prom datos 
          anterior y posterior v&#225;lida</li>
        <li><strong class="pname"><code>lind_lost</code></strong> - Lista de &#237;ndice de datos faltantes. Si lind_lost=None entonces 
          rellena todos los datos faltantes</li>
        <li><strong class="pname"><code>lin_reg_param</code></strong> (tuple (gradient, intercept, r_value, p_value, std_err)) - Par&#225;metros de la regresi&#243;n lineal Si lin_reg_param=None calcula 
          los par&#225;metros a partir de data2.</li>
    </ul></dd>
    <dt>Returns: Matriz de datos</dt>
        <dd>Matriz de datos con datos rellenados</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>c = from_xls(<span class="py-string">'data_test.xls'</span>, 3) <span class="py-comment"># Lee sheet mensual1</span>
<span class="py-prompt">&gt;&gt;&gt; </span>index_lost(c, yrx=False, hidecx=False)
<span class="py-output">[[1, 3], [3, 3], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11]]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>c_r = fill_data(c)
<span class="py-prompt">&gt;&gt;&gt; </span>c[1][1][3]
<span class="py-output">''</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>c_r[1][1][3]
<span class="py-output">5.0999999999999996</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="copy_data"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">copy_data</span>(<span class="sig-arg">data</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#copy_data">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Create the copy of thr data.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos original</li>
    </ul></dd>
    <dt>Returns: Matriz de datos</dt>
        <dd>Copia de matriz de datos</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Esta funci&#243;n genera una copia dura de la matriz de datos original
      </p>
</div></td></tr></table>
</div>
<a name="data_lr"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">data_lr</span>(<span class="sig-arg">data2</span>,
        <span class="sig-arg">lind_lost2</span>,
        <span class="sig-arg">lin_reg_param</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#data_lr">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Calcula datos de una regresi&#243;n lineal de estaci&#243;n data2</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data2</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>lind_lost2</code></strong> - Lista de &#237;ndice de datos faltantes</li>
        <li><strong class="pname"><code>lin_reg_param</code></strong> - Par&#225;metros de la regresi&#243;n lineal</li>
    </ul></dd>
    <dt>Returns: list</dt>
        <dd>Lista de datos con datos rellenados</dd>
  </dl>
<div class="fields">      <p><strong>To Do:</strong>
        data_lr(data1,data2,lind_lost2,lin_reg_param)
      </p>
      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>a = from_xls(<span class="py-string">'data_test.xls'</span>,0) <span class="py-comment"># Lee sheet mensual</span>
<span class="py-prompt">&gt;&gt;&gt; </span>b = from_xls(<span class="py-string">'data_test.xls'</span>,3) <span class="py-comment"># Lee sheet mensual1</span>
<span class="py-prompt">&gt;&gt;&gt; </span>lin_reg_param = [1.0, 0.0, 1.0, 7.8749999999999918e-100, 0.0]
<span class="py-prompt">&gt;&gt;&gt; </span>lind_lost2 = [[1951.0, 3]]
<span class="py-prompt">&gt;&gt;&gt; </span>data_lr(a,lind_lost2,lin_reg_param)
<span class="py-output">[5.0999999999999996]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>data_lr(a,[1951.0, 3],lin_reg_param)
<span class="py-output">5.0999999999999996</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>data_lr(a,[[1953.0, 3]],lin_reg_param)
<span class="py-except">Traceback (most recent call last):</span>
<span class="py-except">...</span>
<span class="py-except">ValueError: Datos requerido fuera de rango</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="data_prom"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">data_prom</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">iyr</span>,
        <span class="sig-arg">cx</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#data_prom">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Rellena dato con promedio de mes anterior y posterior v&#225;lido</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>iyr</code></strong> - A&#241;o del dato faltante</li>
        <li><strong class="pname"><code>cx</code></strong> - Indice de la columna del dato faltante</li>
    </ul></dd>
    <dt>Returns: float</dt>
        <dd>Datos faltante calculado con prom de datos contiguos</dd>
  </dl>
</td></tr></table>
</div>
<a name="plot_corr_q"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plot_corr_q</span>(<span class="sig-arg">data1</span>,
        <span class="sig-arg">data2</span>,
        <span class="sig-arg">yr_conc</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">lin_reg_param</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">name_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">fig02</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">title</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">LinReg </code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">path_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#plot_corr_q">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Plotear correlacion entre 2 matrices de datos</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data1</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>data2</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>yr_conc</code></strong> - A&#241;os concurrentes a plotear. Si yr_conc=None entonces plotea 
          todos los a&#241;os concurrentes</li>
        <li><strong class="pname"><code>lin_reg_param</code></strong> - Par&#225;metros de la regresi&#243;n lineal Si lin_reg_param=None calcula 
          los par&#225;metros a partir de data2</li>
        <li><strong class="pname"><code>name_fig</code></strong> - Nombre archivo PNG donde se guarda el ploteo</li>
        <li><strong class="pname"><code>title</code></strong> - T&#237;tulo del plot</li>
        <li><strong class="pname"><code>path_fig</code></strong> - Ruta de salida del plot</li>
    </ul></dd>
    <dt>Returns: bitmap file</dt>
        <dd>Archivo PNG donde se guarda el ploteo</dd>
  </dl>
</td></tr></table>
</div>
<a name="plot_q"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plot_q</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">yrs</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">name_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">fig01</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">title</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">Caudales </code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">path_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#plot_q">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Plotear caudales de a&#241;os con datos completos en un s&#243;lo archivo</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos con caudales mensuales</li>
        <li><strong class="pname"><code>yrs</code></strong> - Lista de a&#241;os a plotear Si yrs=None plotea todos los a&#241;os</li>
        <li><strong class="pname"><code>name_fig</code></strong> - Nombre archivo PNG donde se guarda el ploteo</li>
        <li><strong class="pname"><code>title</code></strong> - T&#237;tulo del plot</li>
        <li><strong class="pname"><code>path_fig</code></strong> - Ruta de salida del plot</li>
    </ul></dd>
    <dt>Returns: bitmap file</dt>
        <dd>Archivo PNG donde se guarda el ploteo</dd>
  </dl>
</td></tr></table>
</div>
<a name="plot_vol"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plot_vol</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">yrs</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">name_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">fig02</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">title</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">Vol\xc3\xbamenes </code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">path_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">is_data_vol</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#plot_vol">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Plotear vol&#250;men anual de a&#241;os con datos completos</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>yrs</code></strong> - Lista de a&#241;os a plotear Si yrs=None plotea todos los a&#241;os</li>
        <li><strong class="pname"><code>name_fig</code></strong> - Nombre archivo PNG donde se guarda el ploteo</li>
        <li><strong class="pname"><code>title</code></strong> - T&#237;tulo del plot</li>
        <li><strong class="pname"><code>path_fig</code></strong> - Ruta de salida del plot</li>
        <li><strong class="pname"><code>is_data_vol</code></strong> - Indica si la matriz de datos es de vol&#250;menes anuales Si 
          is_data_vol=False cuando la matriz de datos es de caudales 
          mensuales</li>
    </ul></dd>
    <dt>Returns: bitmap file</dt>
        <dd>Archivo PNG donde se guarda el ploteo</dd>
  </dl>
</td></tr></table>
</div>
<a name="plot_c"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plot_c</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">lcx</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">ylabel</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">m3/s</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">name_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">fig01</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">title</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">Grafo </code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">path_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#plot_c">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Plotear datos de una columna</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>lcx</code></strong> - Lista de &#237;ndices de la columnas a plotear</li>
        <li><strong class="pname"><code>ylabel</code></strong> - Etiqueta del eje y</li>
        <li><strong class="pname"><code>name_fig</code></strong> - Nombre archivo PNG donde se guarda el ploteo</li>
        <li><strong class="pname"><code>title</code></strong> - T&#237;tulo del plot</li>
        <li><strong class="pname"><code>path_fig</code></strong> - Ruta de salida del plot</li>
    </ul></dd>
    <dt>Returns: bitmap file</dt>
        <dd>Archivo PNG donde se guarda el ploteo</dd>
  </dl>
</td></tr></table>
</div>
<a name="plot_yr"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plot_yr</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">years</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">name_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">fig01</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">title_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">Caudales A\xc3\xb1o</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">path_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#plot_yr">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Plotear en cada archivo datos a&#241;os completos e incompletos rellenando 
  con promedio datos cercanos al faltante</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>years</code></strong> - Lista de a&#241;os a plotear Si years=None plotea todos los a&#241;os</li>
        <li><strong class="pname"><code>name_fig</code></strong> - Nombre archivo PNG donde se guarda el ploteo</li>
        <li><strong class="pname"><code>title_fig</code></strong> - T&#237;tulo del plot</li>
        <li><strong class="pname"><code>path_fig</code></strong> - Ruta de salida del plot</li>
    </ul></dd>
    <dt>Returns: bitmap file</dt>
        <dd>Archivo PNG donde se guarda el ploteo</dd>
  </dl>
</td></tr></table>
</div>
<a name="plot_yr_lr"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plot_yr_lr</span>(<span class="sig-arg">data</span>,
        <span class="sig-arg">years</span>,
        <span class="sig-arg">data1</span>,
        <span class="sig-arg">lin_reg_param</span>,
        <span class="sig-arg">name_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">fig01</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">title_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">Caudales </code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">path_fig</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string"></code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#plot_yr_lr">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Plotear en cada archivo datos a&#241;os completos e incompletos rellenando 
  con con una correlaci&#243;n con otra estaci&#243;n</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>data</code></strong> - Matriz de datos a plotear</li>
        <li><strong class="pname"><code>data1</code></strong> - Matriz de datos</li>
        <li><strong class="pname"><code>years</code></strong> - Lista de a&#241;os a plotear</li>
        <li><strong class="pname"><code>lin_reg_param</code></strong> - Par&#225;metros de la regresi&#243;n lineal</li>
        <li><strong class="pname"><code>name_fig</code></strong> - Nombre archivo PNG donde se guarda el ploteo</li>
        <li><strong class="pname"><code>title_fig</code></strong> - T&#237;tulo del plot</li>
        <li><strong class="pname"><code>path_fig</code></strong> - Ruta de salida del plot</li>
    </ul></dd>
    <dt>Returns: bitmap file</dt>
        <dd>Archivo PNG donde se guarda el ploteo</dd>
  </dl>
<div class="fields">      <p><strong>To Do:</strong>
        Si years=None plotea todos los a&#241;os Si lin_reg_param=None calcula los 
    par&#225;metros a partir de data2.
      </p>
</div></td></tr></table>
</div>
<a name="plot_yr_lost"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plot_yr_lost</span>(<span class="sig-arg">names_data</span>,
        <span class="sig-arg">*args</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#plot_yr_lost">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Plot de a&#241;os sin datos</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>names_data</code></strong> (list) - Lista con nombre de las estaciones correspondientes a las 
          matrices de datos, [name1, ... ,nameN]</li>
        <li><strong class="pname"><code>args</code></strong> (= tuple) - Matrices de datos, matriz_datos1, ... ,matriz_datosN</li>
    </ul></dd>
    <dt>Returns: bitmap file</dt>
        <dd>Archivo PNG donde se guarda el ploteo</dd>
  </dl>
</td></tr></table>
</div>
<a name="plot_yr_type"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">plot_yr_type</span>(<span class="sig-arg">names_data</span>,
        <span class="sig-arg">*args</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#plot_yr_type">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Plot de a&#241;os sin datos names_data = [name1, ... ,nameN] args = 
  matriz_datos1, ... ,matriz_datosN</p>
  <dl class="fields">
  </dl>
<div class="fields">      <p><strong>To Do:</strong>
        Sin implementar
      </p>
</div></td></tr></table>
</div>
<a name="trunc_str"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">trunc_str</span>(<span class="sig-arg">names</span>,
        <span class="sig-arg">n</span>=<span class="sig-default">6</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#trunc_str">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Trunca las palabras dentro de una lista de palabras</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>names</code></strong> - Lista de palabras</li>
        <li><strong class="pname"><code>n</code></strong> - Largo de palabras</li>
    </ul></dd>
    <dt>Returns: list</dt>
        <dd>Lista de nombres truncados en 6 letras</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>names = [<span class="py-string">'Salida Laguna'</span>, <span class="py-string">'Claro Rivadavia'</span>, <span class="py-string">'Elqui Almendral'</span>]
<span class="py-prompt">&gt;&gt;&gt; </span>trunc_str(names)
<span class="py-output">['Salida', 'Claro ', 'Elqui ']</span></pre>
      </p>
</div></td></tr></table>
</div>
<a name="ones"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ones</span>(<span class="sig-arg">lista</span>,
        <span class="sig-arg">value</span>=<span class="sig-default">1</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="hidro_data-pysrc.html#ones">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Crea una lista de igual largo rellenando con el valor dado</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>lista</code></strong> - Lista de elementos</li>
        <li><strong class="pname"><code>value</code></strong> - Valor a rellenar</li>
    </ul></dd>
    <dt>Returns: list</dt>
        <dd>Lista rellenada con valor dado</dd>
  </dl>
<div class="fields">      <p><strong>Note:</strong>
        Ejemplos
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>ones([1,2,3],3)
<span class="py-output">[3, 3, 3]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>ones([1,2,3])
<span class="py-output">[1, 1, 1]</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>ones([1,2,3,4],2)
<span class="py-output">[2, 2, 2, 2]</span></pre>
      </p>
</div></td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th bgcolor="#70b0f0" class="navbar-select"
          >&nbsp;&nbsp;&nbsp;Home&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Thu Oct 21 19:42:53 2010
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
